﻿//-----------------------------------------------------------------------------------------------------------
// Wbfs Engine (WBFSe) Project by Omega Frost 
// http://wbfse.codeplex.com/
//
// WBFSe is Licensed under the terms of the 
// Microsoft Reciprocal License (Ms-RL)
//-----------------------------------------------------------------------------------------------------------
using WBFSe.Data;

namespace WBFSe.Builders.V1
{
    class PartitionDataV1
    {
        // Informações básicas
        public PartitionInfoV1 Info;
        public int DataStartBlock;

        // Dados de criptografia e arquivos
        public byte[] Ticket;
        public int TMDSize;
        public long TMDOffset;
        public int CertChainSize;
        public long CertChainOffset;
        public long H3TableOffset; //H3 Table Size = 0x18000
        public long DataOffset;
        public long DataSize;
        public byte[] TMD;
        public byte[] Cert;
        public byte[] TitleKey;

        public int DolOffset;
        public int FstOffset;
        public int FstSize;
        public int AplOffset;
        public int AplSize;

        public byte[] AplHeader;
        public byte[] Fst;

        public int FstItemsCount;
        public int FstNameTablePos;
        public FileSystemNode root;
    }
}
